package com.bt7274.pojo.bo;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import lombok.Data;

import java.util.List;

/**
 * @BelongsProject: bt7274-back
 * @BelongsPackage: com.bt7274.pojo.bo
 * @Author: Galland
 * @CreateTime: 2025-06-14
 * @Description: 创建考核规则BO
 * @Version: 1.0
 */
@Data
public class CreateUserRuleBO {
    @NotBlank(message = "规则名称不能为空")
    private String name;

    @NotBlank(message = "考核指标不能为空")
    private String metric;

    @NotNull(message = "达标阈值不能为空")
    @Positive(message = "达标阈值必须为正数")
    private Float threshold;

    @NotNull(message = "考核周期不能为空")
    @Positive(message = "考核周期必须为正数")
    private Integer cycleDays;

    @NotBlank(message = "惩罚措施不能为空")
    private String penalty;

    private Integer priority = 100;
    private List<Integer> exemptGroups;
    private String description;
}
